To prevent typing mistakes and save time entering repetitive compile commands, variables can be used in the command text that is evaluated prior to execution. These variables can be used to identify the name of a file, the fully qualified filename, file extension, etc.
The following table lists the available compile command variables and provides a sample of the output for the file //hpux/usr/dev/sample.java.
For |
Enter |
Sample |
Fully qualified file name |
<p> |
/usr/dev/sample.java |
File name |
<f> |
sample.java |
File directory |
<d> |
/usr/dev |
File extension |
<e> |
java |
File base name |
<b> |
sample |
Project name |
<pn> |
/usr/dev/b |
In addition to the standard compile command variables, HPe3000 compatible file names and locations are also supported. The following table lists the additional compile command variables and provides a sample for the file SAMPLE.PUB.SYS (/SYS/PUB/SAMPLE).
For |
Enter |
Sample |
Fully qualified file name |
<mp> |
SAMPLE.PUB.SYS |
Account and group name |
<md> |
PUB.SYS |
Clicking the arrow to the right of the compile command box in the project settings dialog displays a popup menu containing command variables to choose from.
The field below the compile command field displays an example of the compile command with each command variable evaluated using the current file name and location.
See Also